
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/11/23
  Time: 17:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<spring:form action="/SpringMVC_03/addBook" method="post" modelAttribute="book">
    <spring:label path="bookName">书名</spring:label><spring:input path="bookName"></spring:input> <spring:errors path="bookName" cssStyle="color:red" /><br>
    <spring:label path="bookType">类型</spring:label><spring:input path="bookType"></spring:input> <spring:errors path="bookType" cssStyle="color:red" /><br>
    <spring:label path="bookWriter">作者</spring:label><spring:input path="bookWriter"></spring:input> <spring:errors path="bookWriter" cssStyle="color:red" /> <br>
    <spring:label path="bookPrice">价格</spring:label><spring:input path="bookPrice"></spring:input>  <spring:errors path="bookPrice" cssStyle="color:red" /> <br>
    <input type="submit" value="注册">
    ${msg}
</spring:form>
</body>
</html>
